<style>
  .upload-img-wrap {
    width: 400px;
  }
  .upload-img-item {
    float: left;
    width: 80px;
    height: 48px;
    margin: 0 8px 8px 0;
    position: relative;
  }
  div.upload-img-item span{
    display: none;
  }
  div.upload-img-item:hover span{
    display: block;
  }
  .upload-img-delete {
    position: absolute;
    z-index: 999;
    right: 0;
    top: 0;
    color: #fff!important;
  }
  .upload-img {
    display: block;
    width: 80px;
    height: 48px;
    object-fit: cover;
  }
  .upload-img-index {
    position: absolute;
    z-index: 999;
    left: 0;
    top: 0;
    color: indianred!important;
    font-size: 12px;
    font-weight: bold;
  }

</style>
<div q-img-select="onImgSelect($files)" data-multiple="true" title="上传封面图" onclick="this.value = null">
  <img ng-src="{{imgObject.imgUrl || 'http://image-wxb.qiniudn.com/FqvWr80VUEk5-XhWHkL_iz6pwhDG'}}" width="200px" ng-if="!imgObject.multiple"/>
  <div ng-if="imgObject.multiple" class="upload-img-wrap">
    <img src="http://image-wxb.qiniudn.com/FqvWr80VUEk5-XhWHkL_iz6pwhDG" style="margin-bottom: 10px" ng-style="{'width': imgObject.imgUrl.length === 0 ? '200px' : '80px', 'height': imgObject.imgUrl.length === 0 ? '120px' : '48px'}" />
    <div ng-repeat="it in imgObject.imgUrl | orderBy: 'priority'">
      <div class="upload-img-item">
        <div class="upload-img-index">
          {{it.priority}}
        </div>
        <span class="btn btn-xs btn-danger upload-img-delete" ng-click="deleteImg(it, $index)">删除</span>
        <img ng-src="{{it.url}}" class="upload-img" />
      </div>
    </div>
  </div>
</div>
<div class="form-group" style="margin-top: 20px">
  <div class="col-sm-12">
    <div class="progress" ng-show="imgUploading">
      <div class="progress-bar progress-bar-info progress-bar-striped active" role="progressbar"
           aria-valuenow="{{imgProgressbarValue}}" aria-valuemin="0" aria-valuemax="100" style="{{'width:' + imgProgressbarValue +'%'}} ">
        上传完成 {{imgProgressbarValue}} %
      </div>
    </div>
  </div>
</div>
